Skip to content

fix(cli/self-update): postpone initialization of Cfg in setup_mode - #4996

Merged
rami3l merged 4 commits into
rust-lang:mainfrom
rami3l:fix/early-cfg-creation
Aug 6, 2026
Merged

fix(cli/self-update): postpone initialization of Cfg in setup_mode#4996
rami3l merged 4 commits into
rust-lang:mainfrom
rami3l:fix/early-cfg-creation

Conversation

@rami3l

@rami3l rami3l commented Aug 4, 2026

Copy link
Copy Markdown
Member

Fixes #4744 by partially reverting eabe985.

@rami3l
rami3l force-pushed the fix/early-cfg-creation branch 3 times, most recently from 60aa826 to 51b18cf Compare August 4, 2026 15:10
Comment thread src/cli/self_update.rs
@rami3l
rami3l requested a review from djc August 4, 2026 15:14
Comment thread src/cli/self_update/windows.rs
@rami3l
rami3l force-pushed the fix/early-cfg-creation branch from 51b18cf to 57f2dfc Compare August 5, 2026 08:16
@rami3l
rami3l marked this pull request as ready for review August 5, 2026 08:20
@rami3l
rami3l requested a review from ChrisDenton August 6, 2026 12:46
@ChrisDenton
ChrisDenton added this pull request to the merge queue Aug 6, 2026
@rami3l
rami3l removed this pull request from the merge queue due to a manual request Aug 6, 2026
@rami3l
rami3l force-pushed the fix/early-cfg-creation branch from 57f2dfc to 4e5f2f8 Compare August 6, 2026 13:47
@rustbot

rustbot commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@rami3l
rami3l enabled auto-merge August 6, 2026 13:47
@rami3l

rami3l commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

@ChrisDenton I just fixed a small typo; thanks for the review!

@rami3l rami3l changed the title fix(cli/self-update): postpone initialization of Cfg in setup_mode fix(cli/self-update): postpone initialization of Cfg in setup_mode Aug 6, 2026

@ChrisDenton ChrisDenton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, lol, fair enough! That looks good to me too.

View changes since this review

@rami3l
rami3l added this pull request to the merge queue Aug 6, 2026
Merged via the queue into rust-lang:main with commit 07e34ea Aug 6, 2026
31 checks passed
@rami3l
rami3l deleted the fix/early-cfg-creation branch August 6, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rustup-init creates $RUSTUP_HOME even before the installation starts

3 participants